<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
	<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
		<!DOCTYPE html>
		<html lang="zh_CN">

		<head>
			<meta charset="UTF-8">
			<meta http-equiv="X-UA-Compatible" content="IE=edge">
			<meta name="viewport" content="width=device-width, initial-scale=1.0">
			<title>游戏系统</title>
			<link rel="stylesheet" href="${pageContext.request.contextPath}/css/main.css" type="text/css">
			<script src="${pageContext.request.contextPath}/js/jquery-3.6.0.min.js"></script>
		</head>

		<body>
			<div class="navbar">
				<!-- 导航栏 -->
				<div class="header">
					<!-- 导航栏左侧 -->
					<div class="header_left">
						<a href="#">
						 <img src="${pageContext.request.contextPath}/images/log.png" alt="后台">
							<span>
								<c:if test="${judge eq 0}">
									游戏购买
								</c:if>
								<c:if test="${judge eq 1}">
									后台管理
								</c:if>
							</span>
						</a>
					</div>
					<!-- 导航栏右侧 -->
					<div class="header_right">
						<p>当前用户: ${nowuser}</p>
						<a href="logout" onclick="return confirm('确定要退出吗？')">
						 <span>退出登录</span> <img src="${pageContext.request.contextPath}/images/log-out.png"
								alt="">
						</a>
					</div>
				</div>

				<!-- 左侧菜单栏 -->
				<div class="left_bar">
					<ul>
						<c:if test="${judge eq 1}">
							<li><a href="main"> <img src="${pageContext.request.contextPath}/images/main.png" alt="">
									<span>首页</span>
								</a></li>
							<li><a href="userlist"> <img src="${pageContext.request.contextPath}/images/userlist.png"
										alt=""> <span>用户列表</span>
								</a></li>
							<li><a href="adduser"> <img src="${pageContext.request.contextPath}/images/adduser.png"
										alt="">
									<span>添加用户</span>
								</a></li>
							<li><a href="gamelist"> <img src="${pageContext.request.contextPath}/images/gamelist.png"
										alt=""> <span>游戏列表</span>
								</a></li>
							<li><a href="addgame"> <img src="${pageContext.request.contextPath}/images/addgame.png"
										alt="">
									<span>添加游戏</span>
								</a></li>
						</c:if>
						<c:if test="${judge eq 0}">
							<li><a href="buygame"> <img src="${pageContext.request.contextPath}/images/buygame.png"
										alt="">
									<span>游戏入库</span>
								</a></li>
							<li><a href="aboutme"> <img src="${pageContext.request.contextPath}/images/aboutme.png"
										alt=""> <span>关于我</span>
								</a></li>
						</c:if>
					</ul>
				</div>

				<!-- 右侧主体内容 -->
				<div class="right_bar">
					<jsp:include page="${mainRight==null? 'show.jsp':mainRight}"></jsp:include>
				</div>
				<!-- 页面底部部分 -->
				<div class="footer">
					<a href="#"><span>©:关于我们</span></a>
				</div>


			</div>
		</body>

		</html>